<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::mainLoop&lt; cmdType &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">mainLoop</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../d9/dd8/classwheels_1_1dm_1_1main_loop-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::mainLoop&lt; cmdType &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a>&gt;</code></p>
<div class="dynheader">
wheels::dm::mainLoop&lt; cmdType &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d55/classwheels_1_1dm_1_1main_loop__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1main_loop_3_01cmd_type_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1main_loop_3_01cmd_type_01_4_coll__map" id="awheels_1_1dm_1_1main_loop_3_01cmd_type_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,161,213"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:abea90fd0af881531dfe4bcd719a9f0e6" id="r_abea90fd0af881531dfe4bcd719a9f0e6"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abea90fd0af881531dfe4bcd719a9f0e6">cmd_type</a> = typename std::remove_pointer&lt; typename std::decay&lt; cmdType &gt;::type &gt;::type</td></tr>
<tr class="separator:abea90fd0af881531dfe4bcd719a9f0e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa1a29e9db091e1b35bb15b1888a297d6" id="r_aa1a29e9db091e1b35bb15b1888a297d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa1a29e9db091e1b35bb15b1888a297d6">mainLoop</a> (long ovt=10)</td></tr>
<tr class="separator:aa1a29e9db091e1b35bb15b1888a297d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a9308820a029e0b8617fdd2c2ec31cc" id="r_a1a9308820a029e0b8617fdd2c2ec31cc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1a9308820a029e0b8617fdd2c2ec31cc">~mainLoop</a> ()</td></tr>
<tr class="separator:a1a9308820a029e0b8617fdd2c2ec31cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67c6172369e74aaac16a2c48aefd0f8" id="r_af67c6172369e74aaac16a2c48aefd0f8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af67c6172369e74aaac16a2c48aefd0f8">exec</a> ()</td></tr>
<tr class="memdesc:af67c6172369e74aaac16a2c48aefd0f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动主循环  <br /></td></tr>
<tr class="separator:af67c6172369e74aaac16a2c48aefd0f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27eb964c8b61f18d5f40acff97240fdd" id="r_a27eb964c8b61f18d5f40acff97240fdd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a27eb964c8b61f18d5f40acff97240fdd">stop</a> ()</td></tr>
<tr class="memdesc:a27eb964c8b61f18d5f40acff97240fdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">停止运行  <br /></td></tr>
<tr class="separator:a27eb964c8b61f18d5f40acff97240fdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36a96a44603f5761184805b62c4da44a" id="r_a36a96a44603f5761184805b62c4da44a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a36a96a44603f5761184805b62c4da44a">isRunning</a> ()</td></tr>
<tr class="memdesc:a36a96a44603f5761184805b62c4da44a"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否正在运行  <br /></td></tr>
<tr class="separator:a36a96a44603f5761184805b62c4da44a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8025b2e6a55dabe0c078184584c275a0" id="r_a8025b2e6a55dabe0c078184584c275a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html">dispatcher</a>&lt; cmdType &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8025b2e6a55dabe0c078184584c275a0">getDispatch</a> ()</td></tr>
<tr class="memdesc:a8025b2e6a55dabe0c078184584c275a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取调度器  <br /></td></tr>
<tr class="separator:a8025b2e6a55dabe0c078184584c275a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename cmdType&gt;<br />
class wheels::dm::mainLoop&lt; cmdType &gt;</div><dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">cmdType</td><td>命令类型，要求这个类型支持拷贝构造，赋值拷贝;如果属实类则应该是可以 作为方便检索的基础类型，比如整型数据。 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00023">23</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="abea90fd0af881531dfe4bcd719a9f0e6" name="abea90fd0af881531dfe4bcd719a9f0e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abea90fd0af881531dfe4bcd719a9f0e6">&#9670;&#160;</a></span>cmd_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::cmd_type = typename std::remove_pointer&lt; typename std::decay&lt; cmdType &gt;::type &gt;::type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00029">29</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa1a29e9db091e1b35bb15b1888a297d6" name="aa1a29e9db091e1b35bb15b1888a297d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1a29e9db091e1b35bb15b1888a297d6">&#9670;&#160;</a></span>mainLoop()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::mainLoop </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>ovt</em></span><span class="paramdefsep"> = </span><span class="paramdefval">10</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00042">42</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_aa1a29e9db091e1b35bb15b1888a297d6_cgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_aa1a29e9db091e1b35bb15b1888a297d6_cgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_aa1a29e9db091e1b35bb15b1888a297d6_cgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_aa1a29e9db091e1b35bb15b1888a297d6_cgraph">
<area shape="rect" title=" " alt="" coords="5,13,158,56"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab0f35771c8d539c732b6a4e40bcedeaf" title=" " alt="" coords="206,5,364,64"/>
<area shape="poly" title=" " alt="" coords="158,32,190,32,190,37,158,37"/>
</map>
</div>

</div>
</div>
<a id="a1a9308820a029e0b8617fdd2c2ec31cc" name="a1a9308820a029e0b8617fdd2c2ec31cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a9308820a029e0b8617fdd2c2ec31cc">&#9670;&#160;</a></span>~mainLoop()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::~<a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">mainLoop</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00049">49</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_a1a9308820a029e0b8617fdd2c2ec31cc_cgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_a1a9308820a029e0b8617fdd2c2ec31cc_cgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_a1a9308820a029e0b8617fdd2c2ec31cc_cgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_a1a9308820a029e0b8617fdd2c2ec31cc_cgraph">
<area shape="rect" title=" " alt="" coords="5,64,158,107"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#a27eb964c8b61f18d5f40acff97240fdd" title="停止运行" alt="" coords="206,64,358,107"/>
<area shape="poly" title=" " alt="" coords="158,83,190,83,190,88,158,88"/>
<area shape="rect" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html#ab11e58904c1f3d5b6cabe770a1032982" title="清理队列，函数映射表" alt="" coords="415,5,571,48"/>
<area shape="poly" title=" " alt="" coords="358,62,399,50,401,55,359,67"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173" title="获取当前的模块对象指针" alt="" coords="406,72,580,99"/>
<area shape="poly" title=" " alt="" coords="359,91,391,92,390,97,358,97"/>
<area shape="poly" title=" " alt="" coords="358,74,390,74,391,79,359,79"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af67c6172369e74aaac16a2c48aefd0f8" name="af67c6172369e74aaac16a2c48aefd0f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af67c6172369e74aaac16a2c48aefd0f8">&#9670;&#160;</a></span>exec()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::exec </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>启动主循环 </p>

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00055">55</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_af67c6172369e74aaac16a2c48aefd0f8_cgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_af67c6172369e74aaac16a2c48aefd0f8_cgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_af67c6172369e74aaac16a2c48aefd0f8_cgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_af67c6172369e74aaac16a2c48aefd0f8_cgraph">
<area shape="rect" title="启动主循环" alt="" coords="5,64,158,107"/>
<area shape="rect" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html#abf5a396e85ef1065c608d3621292a1e4" title="命令执行调度，执行命令队列的头一个" alt="" coords="215,5,371,48"/>
<area shape="poly" title=" " alt="" coords="157,62,199,50,201,55,159,67"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173" title="获取当前的模块对象指针" alt="" coords="206,72,380,99"/>
<area shape="poly" title=" " alt="" coords="158,91,190,92,190,97,158,97"/>
<area shape="poly" title=" " alt="" coords="158,74,190,74,190,79,158,79"/>
<area shape="rect" href="../../dd/d54/classwheels_1_1variant.html#aced76c3bf530e5ea5aa73c0b04b1094a" title=" " alt="" coords="428,13,563,40"/>
<area shape="poly" title=" " alt="" coords="372,24,413,24,413,29,372,29"/>
<area shape="rect" href="../../d6/d33/classwheels_1_1private_____1_1variant____.html#aa6260db0d2704c9def326b5af22dc95d" title=" " alt="" coords="611,5,743,48"/>
<area shape="poly" title=" " alt="" coords="564,24,596,24,596,29,564,29"/>
</map>
</div>

</div>
</div>
<a id="a8025b2e6a55dabe0c078184584c275a0" name="a8025b2e6a55dabe0c078184584c275a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8025b2e6a55dabe0c078184584c275a0">&#9670;&#160;</a></span>getDispatch()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html">dispatcher</a>&lt; cmdType &gt; * <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::getDispatch </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取调度器 </p>

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00096">96</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_a8025b2e6a55dabe0c078184584c275a0_cgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_a8025b2e6a55dabe0c078184584c275a0_cgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_a8025b2e6a55dabe0c078184584c275a0_cgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_a8025b2e6a55dabe0c078184584c275a0_cgraph">
<area shape="rect" title="获取调度器" alt="" coords="5,5,158,48"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173" title="获取当前的模块对象指针" alt="" coords="206,13,380,40"/>
<area shape="poly" title=" " alt="" coords="158,33,190,33,190,38,158,38"/>
<area shape="poly" title=" " alt="" coords="158,15,190,15,190,20,158,21"/>
</map>
</div>

</div>
</div>
<a id="a36a96a44603f5761184805b62c4da44a" name="a36a96a44603f5761184805b62c4da44a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36a96a44603f5761184805b62c4da44a">&#9670;&#160;</a></span>isRunning()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::isRunning </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>判断是否正在运行 </p>

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00092">92</a> 行定义.</p>

</div>
</div>
<a id="a27eb964c8b61f18d5f40acff97240fdd" name="a27eb964c8b61f18d5f40acff97240fdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27eb964c8b61f18d5f40acff97240fdd">&#9670;&#160;</a></span>stop()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename cmdType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html">wheels::dm::mainLoop</a>&lt; cmdType &gt;::stop </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>停止运行 </p>

<p class="definition">在文件 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a> 第 <a class="el" href="../../d0/dfd/mainloop_8hpp_source.html#l00075">75</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_cgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_cgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_cgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_cgraph">
<area shape="rect" title="停止运行" alt="" coords="5,64,158,107"/>
<area shape="rect" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html#ab11e58904c1f3d5b6cabe770a1032982" title="清理队列，函数映射表" alt="" coords="215,5,371,48"/>
<area shape="poly" title=" " alt="" coords="157,62,199,50,201,55,159,67"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173" title="获取当前的模块对象指针" alt="" coords="206,72,380,99"/>
<area shape="poly" title=" " alt="" coords="158,91,190,92,190,97,158,97"/>
<area shape="poly" title=" " alt="" coords="158,74,190,74,190,79,158,79"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_icgraph.png" border="0" usemap="#ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_icgraph" alt=""/></div>
<map name="ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_icgraph" id="ad5/dc5/classwheels_1_1dm_1_1main_loop_a27eb964c8b61f18d5f40acff97240fdd_icgraph">
<area shape="rect" title="停止运行" alt="" coords="206,5,358,48"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#a1a9308820a029e0b8617fdd2c2ec31cc" title=" " alt="" coords="5,5,158,48"/>
<area shape="poly" title=" " alt="" coords="190,29,158,29,158,24,190,24"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/designM/eventDetail/<a class="el" href="../../d0/dfd/mainloop_8hpp_source.html">mainloop.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
